package databeans;

/*
 * Schema for Question Table
 * 
 * qid : Primary Key (question id)
 * sid : Foriegn Key referenced from Survey Table
 * type : enum of question type {BINARY,NETWORK_BINARY,etc}
 * qnum : question number
 * question : Question that researcher inputs (eg: What is your name?)
 * dynetmlAttr : dynetml attribute identifier for non-network, dynetml network identifier for network
 * dynetmlType : dynetml attribute type for non-network (categoryText, number, etc)
 * entityFrom : name of entity class for dynetml matrix, Foreign Key of EntityClass table
 * entityTo : name of entity class for dynetml matrix, Foreign Key of EntityClass table
 */

public class Question {
	
	private int qid;
	private int sid;
	private int type;
	private int qnum;
	private String question;
	private String dynetmlAttr;
	private int dynetmlType;
	private String entityFrom;
	private String entityTo;
	
	public Question(int qid) {
		this.qid = qid;
	}
	
	public int getQid() {
		return qid;
	}
	public int getSid() {
		return sid;
	}
	public int getType() {
		return type;
	}
	public int getQnum() {
		return qnum;
	}
	public String getQuestion() {
		return question;
	}
	public String getDynetmlAttr() {
		return dynetmlAttr;
	}
	public int getDynetmlType() {
		return dynetmlType;
	}
	public String getEntityFrom() {
		return entityFrom;
	}
	public String getEntityTo() {
		return entityTo;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public void setType(int type) {
		this.type = type;
	}
	public void setQnum(int qnum) {
		this.qnum = qnum;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public void setDynetmlAttr(String dynetmlAttr) {
		this.dynetmlAttr = dynetmlAttr;
	}
	public void setDynetmlType(int dynetmlType) {
		this.dynetmlType = dynetmlType;
	}
	public void setEntityFrom(String entityFrom) {
		this.entityFrom = entityFrom;
	}
	public void setEntityTo(String entityTo) {
		this.entityTo = entityTo;
	}
}
